package cn.edu.ljl;


//登录的页面开头、结尾、图片

public class Page {
    public static String getHeader() {
        String head = "<html>" +
                "<head>" +
                "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />" +
                "<style>" +
                ".menu {font-weight:bold; font-size:1em; padding:2em}" +
                "tr {line-height:2.5em}" +
                "</style>" +
                "</head>" +
                "<body>" +
                "<style type=\"text/css\">\n" +
                "\tbody{\n" +
                "\t\tbackground: url(\"../pic/lu.jpg\") no-repeat center center fixed;\n" +
                "                /*兼容浏览器版本*/\n" +
                "                -webkit-background-size: cover;\n" +
                "                -o-background-size: cover;\n" +
                "                background-size: cover;\n" +
                "\t}\n" +
                "</style>"+
                "<div style='text-align:center;padding:0.7em'><h1>成绩查询系统</h1></div>" +
                "<div style='text-align:center;padding:0.7em'>" +
                "	<span class='menu'><a href='./add.html'>添加</a></span>" +
                "	<span class='menu'><a href='./manage.html'>管理</a></span>" +
                "	<span class='menu'><a href='./refer.html'>查询</a></span>" +
                "	<span class='menu'><a href='/gittest/logout'>退出系统</a></span>" +
                "</div>";
        return head;
    }

    public static String getPic() {
        String pic =  "<style type=\"text/css\">\n" +
                "\tbody{\n" +
                "\t\tbackground: url(\"../pic/xin.jpg\") no-repeat center center fixed;\n" +
                "                /*兼容浏览器版本*/\n" +
                "                -webkit-background-size: cover;\n" +
                "                -o-background-size: cover;\n" +
                "                background-size: cover;\n" +
                "\t}\n" +
                "</style>";
        return pic;
    }

    public static String getEnd() {
        return "</body></html>";
    }

    public static String getClearHeader(){
        String head = "<html>" +
                "<head>" +
                "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />" +
                "<style>" +
                ".menu {font-weight:bold; font-size:1em; padding:2em}" +
                "tr {line-height:2.5em}" +
                "</style>" +
                "</head>" +
                "<body>" ;
        return head;
    }

}
